﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>西南科技大学暑假倒计时</title>
<link href="css/shou.css" tppabs="http://hscsaudjs.sinaapp.com/css/shou.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery.1.4.2-min.js" tppabs="http://hscsaudjs.sinaapp.com/js/jquery.1.4.2-min.js"></script>
<script type="text/javascript">
$(function(){
	countDown("2016/7/20 00:00:00","#demo01 .day","#demo01 .hour","#demo01 .minute","#demo01 .second");
	countDown("2016/5/27 20:30:00",null,"#demo02 .hour","#demo02 .minute","#demo02 .second");
});

function countDown(time,day_elem,hour_elem,minute_elem,second_elem){
	//if(typeof end_time == "string")
	var end_time = new Date(time).getTime(),//月份是实际月份-1
	//current_time = new Date().getTime(),
	sys_second = (end_time-new Date().getTime())/1000;
	var timer = setInterval(function(){
		if (sys_second > 0) {
			sys_second -= 1;
			var day = Math.floor((sys_second / 3600) / 24);
			var hour = Math.floor((sys_second / 3600) % 24);
			var minute = Math.floor((sys_second / 60) % 60);
			var second = Math.floor(sys_second % 60);
			day_elem && $(day_elem).text(day);//计算天
			$(hour_elem).text(hour<10?"0"+hour:hour);//计算小时
			$(minute_elem).text(minute<10?"0"+minute:minute);//计算分
			$(second_elem).text(second<10?"0"+second:second);// 计算秒
		} else { 
			clearInterval(timer);
		}
	}, 1000);
}
</script>
<!-- xcyoung.com Baidu tongji analytics -->
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "//hm.baidu.com/hm.js?ed8965c5c40e5ffd23230f8bd4319eea";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</head>
<body bgcolor="#D6D6D6" background="images/beijin.jpg" tppabs="http://hscsaudjs.sinaapp.com/images/beijin.jpg">
<div style="margin-top:90px; padding-bottom:24px; line-height:75px; font-size:65px; color:#333; text-align:center;">
     <p><strong>西南科技大学暑假倒计时</strong></p>
</div>
<div class="weiduduan clearfix">
<div class="colockbox" id="demo01">
	<span class="day">-</span>   <span class="hour">-</span>
	<span class="minute">-</span>
	<span class="second">-</span>
</div>
</div> <!-- weiduduan End -->

<div style="margin-top:300px; padding-bottom:24px; line-height:75px; font-size:45px; color:#333; text-align:center;">
  <p>2.27-2.28报到 ，2.29正式上课</p>
  <p>17周全部停课，进入期末考试，放假时间由学院统一安排</p>
  <p>©2016 二哥科技</p>
  <p>微信号：ergeit</p>
</div> 
<!-- 二哥科技 End --> 

<!--
//////////////  二哥科技



</body>
</html> 